import { config } from '../config'
import { isEnvDevelopment } from './env'
const envConsole = import.meta.env.VITE_APP_VCONSOLE == 'true' || false

let vConsole = {}
if (envConsole || (isEnvDevelopment && config.vConsole)) {
  import('vconsole').then(({ default: VConsole }) => {
    vConsole = new VConsole()
  })
}

export default vConsole
